package io.renren.modules.biz.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.biz.dao.CenterDao;
import io.renren.modules.biz.entity.CenterEntity;
import io.renren.modules.biz.service.CenterService;


@Service("centerService")
public class CenterServiceImpl extends ServiceImpl<CenterDao, CenterEntity> implements CenterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CenterEntity> page = this.selectPage(
                new Query<CenterEntity>(params).getPage(),
                new EntityWrapper<CenterEntity>()
        );

        return new PageUtils(page);
    }

}
